
    var n_arr=[],i=0;
	$.ajax({
		type: "post",
		url: "http://www.agilebuild.com.cn/api/Recruitment/get_recruitment_list",
		async: true,
		data: {
			list_id: 2,
			page: 1,
		},
		success: function(res) {
			sum(res)
			console.log(res)
			var vm = new Vue({
				el:"#tab",
				data:{
					arr:res.data,
					n_arr:[]
				},
				methods:{
					add:function(){						
						this.n_arr.push(this.arr[i])
						i++
						if (i>=res.data.length) {
							i=0
						}
						console.log(this.n_arr)
					},
					del:function(){
						this.n_arr.splice(0,1)
					}
				}
			})
		},
	});


function sum(res) {
	n_arr.push(res.data);

}